package com.shiguiwu.springmybatis.designpattern.strategy;

import java.math.BigDecimal;

/**
 * @description:
 * @author: stone
 * @date: Created by 2021/9/9 16:47
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.strategy
 */
public interface ICouponDiscount<T> {

    /**
     * 优惠券⾦金金额计算
     * @param couponInfo 券折扣信息；直减、满减、折扣、N元购
     * @param price sku⾦金金额
     * @return  优惠后⾦金金额
     */
    BigDecimal discountAmount(T couponInfo, BigDecimal price);


}
